﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sprout.Core.Attributes
{
    public class ExcelReadAttribute : Attribute
    {
        public ExcelReadAttribute(string columnName)
        {
            ColumnName = columnName;
            Index = -1;
        }
        public ExcelReadAttribute(int index)
        {
            Index = index;
        }
        /// <summary>
        /// 读取excel时，实体属性所对应的索引
        /// </summary>
        public int Index { get; }
        /// <summary>
        /// excel列名
        /// </summary>
        public string ColumnName { get; }

    }
}
